package com.hyperfix.models.simulator.pojos;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author JiangChunYu
 * 2024/3/12
 */
@TableName("schedule_setting")
@Data
public class ScheduleSetting implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 任务id
     */
    @TableId(value = "job_id", type = IdType.AUTO)
    private Integer jobId;
    /**
     * 站场编号
     */
    @TableField(exist = false)
    private Integer station;
    /**
     * 管线编号
     */
    private Integer pipeline;
    /**
     * cron表达式
     */
    private String cronExpression;
    /**
     * 状态（1正常 0暂停）
     */
    private Integer jobStatus;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
